<!DOCTYPE html>
<html>
  <head>
    <title>佣金提现</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
      <link rel="stylesheet" href="${s.base}/mobile/base/css/weui.min.css">
    <link rel="stylesheet" href="${s.base}/mobile/base/css/jquery-weui.css">
      <link rel="stylesheet" href="${s.base}/mobile/base/css/base.css?123456">
      <link rel="stylesheet" href="${s.base}/mobile/base/css/component.css?123456">
    <style type="text/css">
	html,body{background:#F8F8F8;}	
	 .xyg-content{width:90%; height:auto; margin:0px 5%; padding: 30px 0px 80px 0px; background:#ffffff; border-radius: 15px;}
     .xyg-content .xyg-content-item{width:90%; height:40px; margin:0px 5%; line-height: 40px; padding:20px 0px; }
	.xyg-content .xyg-content-item input{line-height: 40px;margin-top: 30px; width: 80%; margin-left: 5px; }
	.xyg-article{width:90%; height:auto; margin:40px 5%;font-size: 28px; line-height: 40px; color: #2F2F2F;}
    </style>
  </head>
  <body>
  <div style="width: 100%; height: 20px;"></div>
   <div class="xyg-content">
       <div class="xyg-content-item color1 font-base1-size borderBottom">
			可提现余额：<span class="color4">${webMember.money}元</span>
      		<div class="floatR font-base1-size" onclick="goTixianListPage('${memberId}')" >提现记录</div>
       </div>
       <div class="xyg-content-item color1 font-base1-size borderBottom">
			提现金额
       </div>
       <div class="xyg-content-item color1 font-base1-size">
			￥<input type="text" id="money" pattern="[0-9]*"  class="xyg-comp-input-noborder font-base1-size" placeholder="请输入金额"/>
       </div>
       <div class="margT60 width-b-90">
       <input type="button" onclick="submit()" class="xyg-btn-two backgroud1 color3" value="立即提现"/>
       </div>
   </div>
   <div class="xyg-article">
   		<article class="weui-article">
		  提现说明<br/>
		  1.佣金在支付完成后20天(无售后退款)即可结算提现。<br/>
2.每次提现金额不少于10元， 上限10000元;<br/>
3.每月最多可以提现2次;<br/>
4.操作提现暂不收手续费(后续根据政策调整) ;<br/>
5.提现需绑定手机号;<br/>
6.恶意提现- .经发现，平台将对账号进行封号;<br/>
7,提现将会通过微信的[通知服务1进行通知，打款到微信零钱，请注意查收。<br/>

                        
		</article>
   </div>
  </body>
  <script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
  <script src="${s.base}/mobile/base/js/jquery-2.1.4.js"></script>
  <script src="${s.base}/mobile/base/js/jquery-weui.js"></script>
  <script src="${s.base}/mobile/base/js/swiper.js"></script>
  <script src="${s.base}/mobile/base/fonts/iconfont.js"></script>
  <script src="${s.base}/mobile/base/js/component.js"></script>
  <script src="${s.base}/mobile/base/js/base.js?123456789000"></script>

  <!--js分享代码开始-->
  <input type="hidden" value="${jSTicketShareResponse.appid}" id="appid" />
  <input type="hidden" value="${jSTicketShareResponse.fxTitle}" id="fxTitle" />
  <input type="hidden" value="${jSTicketShareResponse.fxImgUrl}" id="fxImgUrl" />
  <input type="hidden" value="${jSTicketShareResponse.fxDesc}" id="fxDesc" />
  <input type="hidden" value="${jSTicketShareResponse.fxUrl}" id="fxUrl" />
  <input type="hidden" value="${jSTicketShareResponse.nonceStr}" id="nonceStr" />
  <input type="hidden" value="${jSTicketShareResponse.timestamp}" id="timestamp" />
  <input type="hidden" value="${jSTicketShareResponse.signature}" id="signature" />
  <script src="${s.base}/mobile/base/js/share.js"></script>
  <script type="text/javascript">
  	initXygDpi();
    var memberId='${memberId}';
	$(document).ready(function(e) {
		initDate();
    });
	function initDate(){

	}

    function submit() {
        var money = $("#money").val();
        if (money == null || money == ""){
            $.toast("请输入提现金额！", "text");
            return false;
        }
        var reg = /^[1-9]\d*$/;
        if (!reg.test(money)){
            $.toast("请输入正整数！", "text");
            return false;
        }
        if (parseInt(money) < 10){
            $.toast("您输入的金额不能小于10元！", "text");
            return false;
        }
        var readyMoney = '${webMember.money}';
        if (parseInt(money) > readyMoney){
            $.toast("您的剩余金额不足！", "text");
            return false;
        }
        $.fn.postMethodResult("/weChat/withdrawSave",{'money':money,'memberId':memberId},function (data) {
            $.alert("您的提现申请已经提交成功，我们将会及时处理！",function () {
                goMyPage(memberId);
            });
        });
    }
  </script>
  
</html>

